using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Ascend.Windows.Forms;
using AdvanceTimeTableManagement.Properties;

namespace AdvanceTimeTableManagement
{
    public partial class AdminForm : Form
    {
        public AdminForm()
        {
            InitializeComponent();
        }

        private void navigationPaneMain_SelectedIndexChanged(object sender, EventArgs e)
        {
           
        }

        private void AdminForm_Load(object sender, EventArgs e)
        {
            this.navigationPaneMain.NavigationPages.Clear();
            //You do not have to clear the navigation panes. I'm just showing how this is done.
            navigationPaneMain.SelectedIndexChanged += new EventHandler(navigationPaneMain_SelectedIndexChanged);
            NavigationPanePage navigationPanePage = new NavigationPanePage();
            navigationPanePage.Name = "pageClassSetup";
            navigationPanePage.Text = "Class Set-Up";

            Button btnAddNew = CreateMenuButton("Add New");
            navigationPanePage.Controls.Add(btnAddNew);

            this.navigationPaneMain.NavigationPages.Add(navigationPanePage);

            NavigationPanePage navigationPanePage2 = new NavigationPanePage();
            navigationPanePage2.Name = "pageSubjectSetUp";
            navigationPanePage2.Text = "Subject Set-Up";

            Label label2 = new Label();
            label2.Text = "Subject setup control";

            navigationPanePage2.Controls.Add(label2);

            this.navigationPaneMain.NavigationPages.Add(navigationPanePage2);
        }

        private static Button CreateMenuButton(string name)
        {
            Button btnAddNew = new Button();
            btnAddNew.Text = name;
            btnAddNew.Width = 130;
            btnAddNew.Height = 40;
            btnAddNew.FlatAppearance.BorderSize = 0;
            btnAddNew.FlatAppearance.BorderColor = Color.White;
            btnAddNew.BackgroundImage = Resources.button_menu;
            return btnAddNew;
        }
    }
}